import jdk.jshell.SourceCodeAnalysis;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: hp
 * Date: 2024-02-04
 * Time: 12:42
 */
public class Test {
    public static void main(String[] args) {
        int a = 10;
        long b = 20L;
        b = a;//(隐式）
        a = (int)b;//(显式)
    }





//    public static void main(String[] args) {
//        int a = 10;
//        long b = 20L;
//        b = a;//大数据范围可以接收小数据范围的数据，这个时候小数据范围的数据就会类型转化
//        a = b;//小数据范围不能接收大数据范围的数据，这个时候编译器就会报错
//    }




    public static void main333(String[] args) {
        char a = 'A';
        char b = '帅';
        System.out.println(a);
        System.out.println(b);
    }



    public static void main22222(String[] args) {
        double sum = 1.1;
        System.out.println(sum*sum);
    }




    public static void main111(String[] args) {
        double a = 2;
        double b = 4;
        System.out.println(a/b);
    }


    public static void main22(String[] args) {
        byte b = 10;
        System.out.println(b);
        System.out.println(Byte.MAX_VALUE);
        System.out.println(Byte.MIN_VALUE);
    }




    public static void main4(String[] args) {
        for (int i = 1; i <100000 ; i++) {
            int tmp = i;
            int count = 0;
            int sum = 0;
            while(tmp != 0){
                tmp /=10;
                count++;
            }
            tmp=i;
            while(tmp != 0){
                sum+=Math.pow(tmp%10,count);
                tmp/=10;
                }
            if(sum==i){
                System.out.println(i);
            }
        }
    }





    public static void main23(String[] args) {
        for (int i = 1; i <= 9; i++) {
            for (int j = 1; j <= i; j++) {
                System.out.print( j+"*"+i+"="+i*j);
                System.out.print(" ");
            }
            System.out.print('\n');
        }
    }


    public static void main2(String[] args) {
        int i = 1;
        for (i = 1 ; i < 100; i++) {
            int flag = 1;
            for (int j = 2; j < i; j++) {
                if(i%j==0) {
                    flag = 0;
                    break;
                }
            }
            if(flag == 1){
                System.out.println(i+"是素数");
            }
            else{
                System.out.println(i+"不是素数");
            }
        }

    }


    public static void main1(String[] args) {
        int a = -1;
        //10000000000000000000000000000001
        //11111111111111111111111111111110
        //11111111111111111111111111111111
        int b = a >> 1;
        System.out.println(b);//补符号位

    }
    /*public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = a % b;
        while (c != 0) {
            a = b;
            b = c;
            c = a % b;
        }
        System.out.println(b);
        sc.close();
    }*/
}


  /*  public static void main211(String[] args) {
        int i = 1;
        while(i <= 100){
            if(i % 3 == 0 && i % 5 == 0){
                System.out.println("i = "+i);
                i++;
                continue;
            }
            i++;
        }
    }*/
/*    public static void main1(String[] args) {
        int i = 1;
        int sum1 = 0;
        while(i < 100){
            sum1 += i;
            i+=2;
        }
        System.out.println(sum1);
        int j = 2;
        int sum2 = 0;
        while(j <= 100){
            sum2 += j;
            j+=2;
        }
        System.out.println(sum2);
    }
}*/
